#ifndef INSPECTIONSWIDGET_H
#define INSPECTIONSWIDGET_H

#include <QWidget>
#include <QVariantList>

namespace Ui {
class InspectionsWidget;
}

class QStandardItemModel;
class QDate;
class FloatDelegate;
class PromeniDelegate;
class LimbDelegate;

class InspectionsWidget : public QWidget
{
    Q_OBJECT

public:
    InspectionsWidget(QWidget *parent = 0);
    ~InspectionsWidget();
    void setup();
    void clearAll();
    void setupModel();
    void setupView();

    void addLine(const QVariantList& vl);
    void delLine(const int rowNumber);
    void setEnabledBtnDel();

private slots:
    void on_btnAdd_clicked();
    void on_btnDel_clicked();

private:
    Ui::InspectionsWidget *ui;
    FloatDelegate *fd;
};

#endif // INSPECTIONSWIDGET_H
